package creational.builder;

public class BuilderPattern {
  public static void main(String[] args) {
    Presentation presentation = new Presentation();
    presentation.addSlide(new Slide("Introduction to Design Patterns"));
    presentation.addSlide(new Slide("Builder Pattern Overview"));

    var builder = new PdfDocumentBuilder();
    presentation.export(builder);
    PdfDocument document = builder.build();

    MovieBuilder movieBuilder = new MovieBuilder();
    presentation.export(movieBuilder);
    Movie movie = movieBuilder.build();
  }
}
